﻿using NLog;
using NLog.Targets;

namespace Cubicle.Excel.Loggers
{
    [Target("ExcelDnaLogger")]
    public sealed class ExcelDnaLogger : TargetWithLayout
    {

        protected override void Write(LogEventInfo logEvent)
        {
            ExcelDna.Logging.LogDisplay.WriteLine(Layout.Render(logEvent));
        }

    }
}